{ "cells": [ { "cell_type": "code", "execution_count": 1, "id": "baking-order", "metadata": {}, "outputs": [ { "data": { "text/latex": [ "$\\displaystyle F(k) = \\int_{-\\infty}^{\\infty} f(x) e^{2\\pi i k} dx$" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/latex": [ "$\\displaystyle \\frac{\\partial f}{\\partial x} = \\frac{\\partial}{\\partial x}\\left[b(x) + c(x)\\right]$" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "# Here's a short script that shows how LaTeX formulas can be output and \n", "# printed in the IPython console. It uses the IPython.display module. This\n", "# is the one way that I've found that works for me. \n", "from IPython.display import display, Math, Latex\n", "display(Math(r'F(k) = \\int_{-\\infty}^{\\infty} f(x) e^{2\\pi i k} dx'))\n", "display(Math(r'\\frac{\\partial f}{\\partial x} = \\frac{\\partial}{\\partial x}\\left[b(x) + c(x)\\right]'))" ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.8.8" } }, "nbformat": 4, "nbformat_minor": 5 }